package fun.werfamily.wf.goods.core.domain.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import fun.werfamily.wf.goods.core.domain.dto.request.BannerListReqDTO;
import fun.werfamily.wf.goods.core.domain.dto.response.BannerDTO;
import fun.werfamily.wf.goods.core.infrastructure.dataobject.BannerDO;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: Mr.WenMing Zhang
 * @Date: 2022-06-14 18:09
 * @Description:
 */
public interface IBannerService extends IService<BannerDO> {

    /**
     * 多条件查询
     *
     * @param bannerListReqDTO
     * @return
     */
    List<BannerDTO> listByParams(BannerListReqDTO bannerListReqDTO);

    /**
     * 后台分页查询
     *
     * @param bannerListReqDTO
     * @return
     */
    Page<BannerDTO> page(BannerListReqDTO bannerListReqDTO);

    /**
     * 根据排序查询
     *
     * @param sort
     * @param position
     * @param clientType
     * @return
     */
    BannerDO getBySort(Integer sort, String position, Byte clientType);
}
